package com.cqfae.deploycentral.app.base;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by yangheng940 on 2017/7/11.
 */
public class BaseConstants {

    private BaseConstants() {
        throw new IllegalAccessError("BaseConstants class");
    }

    public static final String WEB_ERROR_CODE = "-1";

    public static final String WEB_ERROR_MSG = "访问服务失败";

    public static final String DATE_NUMBER_FORMAT = "yyMMddHHmmss";

    public static final String DEPLOY_TYPE_PACKAGE = "package";

    public static final String DEPLOY_TYPE_ACTION = "deploy";

    public static final String DEPLOY_TYPE_ALL = "all";

    public static final String SCHEDULED_USER = "deploy-central";

    public static final int FILE_LIMIT_BYTES = 1024 * 1024 * 10;

    public static final String mailHeader = "message";

    public static final String TRIGGER_NAME_SUFFIX = "_Trigger";
    public static final String TRIGGER_GROUP_SUFFIX = "_Trigger_Group";

    private static final Map<String, String> constantsCodeMap = new ConcurrentHashMap<>();

    public static Map<String, String> getConstantsCodeMap() {
        return constantsCodeMap;
    }
}
